<script setup>

</script>

<template>
<h1>EL-布局组件</h1>
  <el-row>
    <el-col :span="6" style="background-color: #349ce8">测试数据1</el-col>
    <el-col :span="6">测试数据2</el-col>
    <el-col :span="6" style="background-color: red">测试数据3</el-col>
    <el-col :span="6">测试数据4</el-col>
  </el-row>

  <el-row :gutter="10">
   <el-col :span="4"><img src="2024.png" alt="" style="width: 100%"></el-col>
   <el-col :span="4"><img src="2024.png" alt="" style="width: 100%"></el-col>
   <el-col :span="4"><img src="2024.png" alt="" style="width: 100%"></el-col>
   <el-col :span="4"><img src="2024.png" alt="" style="width: 100%"></el-col>
   <el-col :span="4"><img src="2024.png" alt="" style="width: 100%"></el-col>
   <el-col :span="4"><img src="2024.png" alt="" style="width: 100%"></el-col>
  </el-row>

  <el-row :gutter="10">
    <el-col :span="4"><img src="2024.png" alt="" style="width: 100%"></el-col>
    <el-col :span="8"><img src="2024.png" alt="" style="width: 100%"></el-col>
    <el-col :span="12"><img src="2024.png" alt="" style="width: 100%"></el-col>
  </el-row>
  <el-row :gutter="10">
   <el-col :span="3" v-for="i in 8">{{i}}</el-col>
  </el-row>

  <el-row :gutter="10">
<!--    :offset="6" 列偏移，默认值为0，默认靠左，写几就是向右偏移多少-->
   <el-col :span="12" :offset="6"><img src="2024.png" alt=""></el-col>
  </el-row>

<!--  布局嵌套-->
  <el-row :gutter="10">
   <el-col :span="12"><img src="2024.png" alt="" style="width: 100%"></el-col>
   <el-col :span="12">
<!--   嵌套时，一定要把当前元素再看做一个row，24份，再进行分配！-->
     <el-row :gutter="10">
      <el-col :span="6" v-for="i in 4"><img src="2024.png" alt="" style="width: 100%"></el-col>
     </el-row>
   </el-col>
  </el-row>
</template>

<style scoped>

</style>